package com.fbee.smartcommunities.vo;

import com.fbee.smartcommunities.entity.Permission;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * ClassName: com.fbee.smartcommunities.vo
 * Datetime: 2024/8/16 下午4:27
 * Description:
 *
 * @author 汪佳泉
 * @version 1.0
 * @since 1.0
 */
@Data
@NoArgsConstructor
public class LoginVO {
    private String token;
    private Long OpenId;
    private List<Permission> menu;

    public LoginVO(String token, List<Permission> menu) {
        this.token = token;
        this.menu = menu;
    }

    public LoginVO(String token, Long openId, List<Permission> menu) {
        this.token = token;
        OpenId = openId;
        this.menu = menu;
    }
}
